package com.dog.framework.mqtt.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 *    Mqtt 生产者配置
 * </p>
 *
 * @author liuxk
 * @since 2023/11/21
 */
@ConfigurationProperties("spring.mqtt.producer")
public class MqttProducerProperties {


    private int defaultQos;


    private boolean defaultRetained;

    /**
     * topic前缀
     */
    private String topicPrefix;

    private String[] topics;

    public int getDefaultQos() {
        return defaultQos;
    }

    public void setDefaultQos(int defaultQos) {
        this.defaultQos = defaultQos;
    }

    public boolean getDefaultRetained() {
        return defaultRetained;
    }

    public void setDefaultRetained(boolean defaultRetained) {
        this.defaultRetained = defaultRetained;
    }

    public String getTopicPrefix() {
        return topicPrefix;
    }

    public void setTopicPrefix(String topicPrefix) {
        this.topicPrefix = topicPrefix;
    }

    public String[] getTopics() {
        return topics;
    }

    public void setTopics(String[] topics) {
        this.topics = topics;
    }
}
